<?php

namespace common\models\tsline;

use Yii;

/**
 * This is the model class for table "{{%ts_bloger_authent}}".
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property string $name 名称
 * @property string $avatar LOGO
 * @property string $cover 背景图片
 * @property string $description 简介
 * @property int $authent_id 认证ID
 * @property int $status 状态
 * @property string $mark 备注
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 * @property int $deleted_at 删除时间
 */
class TslineBlogerAuthent extends \yii\db\ActiveRecord {

    use \common\traits\TimestampBehavior;

    /**
     * @inheritdoc
     */
    public static function tableName() {
        return '{{%ts_bloger_authent}}';
    }

    /**
     * @inheritdoc
     */
    public function rules() {
        return [
            [['user_id', 'authent_id', 'status', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
            [['name'], 'required'],
            [['name'], 'string', 'max' => 50],
            [['avatar', 'cover'], 'string', 'max' => 128],
            [['description', 'mark'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'user_id' => '用户ID',
            'name' => '名称',
            'avatar' => 'LOGO',
            'cover' => '背景图片',
            'description' => '简介',
            'authent_id' => '认证ID',
            'status' => '状态',
            'mark' => '备注',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
            'deleted_at' => '删除时间',
        ];
    }

}
